import request from '../utils/request'

let service = {
    getUserInfo(){
        return request({
            method:'GET',
            url:'/students/getStuInfo',
        })
    },
    updateStu(params){
        return request({
            method:'POST',
            url:'/students/updateStu',
            data:params
        })
    },
    getTypes(){
        return request({
            method:'GET',
            url:'/types/getTypes'
        })
    },
    getNotice(){
        return request({
            method:'GET',
            url:'/notices/getNotices'
        })
    },
    getNoticesById(_id){
        return request({
            method:'GET',
            url:`/notices/getNoticesById?_id=${_id}`
        })
    },
    upload(param){
        return request({
            method:'POST',
            url:'/images/upload',
            data:param
        })
    }
}

export default service